package com.md.common.utils.wechat.model;

import com.md.common.utils.json.JSONUtil;

import java.io.Serializable;

/**
 * 功能描述：接口调用凭据
 *
 * @author lujianping@oak168.com
 * @version 1.0
 * @date 2018-7-17 10:13
 * @since JDK 1.8
 */
public class WxAccessToken implements Serializable {
    private static final long serialVersionUID = -6747804983647630651L;

    /**
     * 获取到的凭证
     */
    private String access_token;
    /**
     * 凭证有效时间，单位：秒
     */
    private Integer expires_in;

    public String getAccess_token() {
        return access_token;
    }

    public void setAccess_token(String access_token) {
        this.access_token = access_token;
    }

    public Integer getExpires_in() {
        return expires_in;
    }

    public void setExpires_in(Integer expires_in) {
        this.expires_in = expires_in;
    }

    @Override
    public String toString() {
        return JSONUtil.toJSON(this);
    }
}
